package demo12;

import java.io.*;

public class test13 {
    public static void main(String[] args) {
        try(OutputStream outputStream = new FileOutputStream("d:/mma.txt")) {
            PrintWriter printWriter = new PrintWriter(outputStream);
            printWriter.write("hello");
            printWriter.flush();
        } catch (IOException e) {
            throw new RuntimeException(e);
        }
    }
}
